package sch.frog.behavioral.interpreter;

import sch.frog.behavioral.interpreter.calculator.Context;

public class InterpreterDemo {

    public static void main(String[] args){
//        String expression = "1 + 1 * 3 / 3 + 4 + 4";
//        String expression = "1 + 2 + 3 + 4 + 5";
        String expression = "1.4 + 12 * 2 / 3 / 4 * 5 - 6 + 7 * 8 / 9";


//        String expression = "1 + 2 * 3 + 4 * 5";
        Context context = new Context(expression);

        System.out.println(context.calculate());
    }

}
